package com.cloud.order;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author yanlong.zhang
 * @since 2019-09-05
 */
@Component
@FeignClient(value = "app-fruit", fallback = ItemServiceFallback.class)
public interface OrderFeignClient {

    @RequestMapping(value = "fruit/buyFruit", method= RequestMethod.GET)
    String orderToBuyFruit();
}
